<template>
  <div>
    <el-row>
      <el-col :span="24">
        <div class="addccc">
          <div class="timeZone">
            <el-select v-model="mapType" placeholder="请选择类型">
              <el-option
                v-for="item in block"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>
          </div>
          <div class="timeZone">
            <el-select v-model="software" placeholder="请选择操作人">
              <el-option
                v-for="item in operation"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>
          </div>
          <div class="timeZone">
            <el-input
              style="width: 200px"
              v-model="queryStr"
              placeholder="全局查询"
            ></el-input>
          </div>
        </div>
      </el-col>
      <el-col :span="24">
        <el-table :data="tableData" style="width: 100%">
          <el-table-column type="expand">
            <template #default="props">
              <el-form label-position="left" inline class="demo-table-expand">
                <el-form-item label="详情记录:">
                  <span>{{ props.row.name1 }}</span>
                </el-form-item>
              </el-form>
            </template>
          </el-table-column>
          <el-table-column label="类型" prop="name" width="170">
          </el-table-column>
          <el-table-column label="摘要" prop="desc"> </el-table-column>
          <el-table-column label="时间" width="220">
            <template #default="scope">
              <i class="el-icon-time"></i>
              <span>{{ scope.row.desc1 }}</span>
            </template>
          </el-table-column>
          <el-table-column label="操作员" width="100">
            <template #default="scope">
              <el-tag>{{ scope.row.desc2 }}</el-tag>
            </template>
          </el-table-column>
        </el-table>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  data() {
    return {
      queryStr: "", //查询
      software: "", //操作人
      operation: [],
      mapType: "", //类型
      block: [],
      tableData: [
        {
          name1: "原始信息：{  }",
          name2: "",
          name: "序列编码",
          category: "黄菊",
          desc: "收到用户反馈",
          desc1: "2021/6/2下午7:03:44",
          desc2: "xxxx",
        },
      ],
    };
  },
};
</script>


<style scoped>
.addccc {
  margin-bottom: 20px;
  margin-left: 20px;
  display: flex;
}
.timeZone {
  margin-left: 20px;
}
.demo-table-expand label {
  width: 100px;
  color: #99a9bf;
}
.demo-table-expand .el-form-item {
  margin-right: 0;
  margin-bottom: 0;
  width: 100%;
}
</style>